import service from "@/utils/fetch";
const post = {
  //待办事项
  report_todo(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/todo",
    });
  },

  //今日交易概况
  report_todaySale(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/todaySale",
    });
  },

  //今日商品概况
  report_todaySku(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/todaySku",
    });
  },

  //今日用户概况
  report_todayUser(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/todayUser",
    });
  },

  //   支付/下单金额趋势
  report_saleTrend(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/saleTrend",
    });
  },

  //   会员/店铺新增趋势
  report_vipAndTenantTrend(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/vipAndTenantTrend",
    });
  },

  //   店铺销售排行
  report_tenantSaleTop10(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/tenantSaleTop10",
    });
  },

  //   商品销售排行
  report_skuSaleTop10(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/skuSaleTop10",
    });
  },
};

export default post;
